home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / GX Libraries / FontMenuLibrary.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-31  |  2.3 KB  |  69 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.     File:        FontMenuLibrary.h
  4.  
  5.     Contains:    graphics libraries - font menu library interfaces
  6.  
  7.     Written by:    Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink, Chris Yerga
  8.  
  9.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  10.  
  11.     Change History (most recent first):
  12.  
  13.          <2>      1/9/95    JD        changed 'boolean' to 'Boolean'
  14.          <1>      1/9/95    JD        First checked in.
  15. */
  16.  
  17. #ifndef __FONTMENULIBRARY__
  18. #define __FONTMENULIBRARY__
  19.  
  20. #include <Menus.h>
  21. #include <GXTypes.h>
  22. #include <GXLayout.h>
  23. #include <GXFonts.h>
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. /* for compatibility with old headers */
  30. #define fontMenuLibraryIncludes
  31.  
  32. enum fontMenuAttributes {
  33.     noInstancesFontMenu = 1
  34. };
  35. typedef long fontMenuAttribute;
  36.  
  37. typedef Boolean (*fontFilterProc)(gxFont fontID);
  38.  
  39. void SortMenu(MenuHandle menu);
  40. void DeleteMenuItems(MenuHandle menuH);
  41.  
  42. long FontMenu(MenuHandle menu);
  43. long FontPlatformMenu(MenuHandle menu, gxFontPlatform platform, gxFontScript script, gxFontLanguage language);
  44. long FontFamilyMenu(MenuHandle menu);
  45. long FontFamilyPlatformMenu(MenuHandle menu, gxFontPlatform platform, gxFontScript script, gxFontLanguage language);
  46. MenuHandle FontStyleMenu(short menuID, gxFont family);
  47. short HierFontMenu(MenuHandle theMenu, short firstHierMenuID, fontFilterProc proc, fontMenuAttribute attr);
  48. gxFont DoHierFontMenuCommand(long menuResult, short hierFontMenuID, long *instanceIndex);
  49. Boolean DoHierFontMenuCommandStyle(long menuResult, short hierFontMenuID, gxStyle aStyle, long matchInfo);
  50. short DoHierFontMenuCommandShape(long menuResult, short hierFontMenuID, gxShape aShape);
  51. long FontToQD(gxFont fontID, long* styleBits);
  52.  
  53. long GetMenuRunFeatures(MenuHandle menu, gxFont fontID, gxRunFeature feature[]);
  54. void SetMenuRunFeatures(MenuHandle menu, gxFont fontID, long count, const gxRunFeature feature[]);
  55. void FontFeatureMenu(MenuHandle menu, gxFont fontID);
  56. void ToggleFeatureMenuItem(MenuHandle menuH, gxFont fontID, long item);
  57. void ToggleFeatureMenuFeature(MenuHandle menuH, gxFont fontID, gxRunFeature feature);
  58. void StyleFeatureMenu(MenuHandle menuH, const gxStyle style);
  59.  
  60. long GetDefaultFontFeatures(gxFont fontID, gxRunFeature features[]);
  61. void SetShapeDefaultFeatures(gxShape dst, gxFont fontID);
  62. void SetStyleDefaultFeatures(gxStyle dst, gxFont fontID);
  63.  
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67.  
  68. #endif /* __FONTMENULIBRARY__ */
  69.